package com.jn.dagger.module;

import android.content.Context;

import com.jn.dagger.entity.Course;
import com.jn.dagger.entity.Student;
import com.jn.dagger.utils.SpUtils;

import dagger.Module;
import dagger.Provides;
import jakarta.inject.Singleton;


@Module
public class StudentModule {
   //@Singleton
   @Provides
   public Student studentProvider() {
      return new Student();
   }
   @Provides
   public Course courseProvider(){return new Course() ; }


   @Provides
   @Singleton
   static SpUtils provideSpUtils(Context context) {
      return SpUtils.getInstance(context);
   }
}